﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Day02NightInterface
{
    public class Rectangle:ICalculate
    {
        public float Length
        {
            get;
            set;

        }

        public float Width
        {
            get;
            set;

        }

        public float CalculateArea()
        {
            return Length * Width;
        }

        public float CalculatePerimeter()
        {
            return 2 * Length + 2 * Width;
        }
    }
}